/*
*编写程序要求用户输入两个数（底数base和指数exponent）,输出底数的指数次方
*/
#include<iostream>
using namespace std;

int main()
{
	int base;
	int exponent;
	int result = 1;
	cout << "请输入底数：";
	cin >> base;
	cout << "请输入指数：";
	cin >> exponent;
	
	for(int i =  1; i <= exponent;i++)
	{
		result = result * base;
	}

	cout << base << "的" << exponent << "次方等于：" << result << endl;

	cout << endl;
	system("pause");
}